package com.example.demo.day0304;

/**
 * 继承Thread实现多线程
 */
public class DemoThread extends Thread {//重写run方法
    @Override
    public void run() {
        System.out.println("多线程运行的代码");
        for (int i = 0;i < 5;i++){
            System.out.println("这是多线程的逻辑代码" + i);
        }
    }
}
